import request from "@/utils/request.js";


export function getAdminPlateTypeList() {
  return request({
    url: "/admin/keyboard/getAdminPlateTypeList.do",
    method: "get",
  });
}

export function addAdminKeyboard(keyboardInfo) {
  return request({
    url: "/admin/keyboard/addAdminKeyboard.do",
    method: "post",
    data: keyboardInfo
  });
}

export function getAdminKeyboardInfo(searchInfo) {
  return request({
    url: "/admin/keyboard/getAdminKeyboardInfo.do",
    method: "post",
    data: searchInfo
  });
}

export function deleteAdminKeyboard(id) {
  return request({
    url: `/admin/keyboard/deleteAdminKeyboard.do/${id}`,
    method: "delete"
  });
}

export function getAdminKeyboardDetailInfo(id) {
  return request({
    url: `/admin/keyboard/getAdminKeyboardDetailInfo.do/${id}`,
    method: "get"
  });
}

export function updateAdminKeyboard(data) {
  return request({
    url: `/admin/keyboard/updateAdminKeyboard.do`,
    method: "post",
    data: data
  });
}

export function getAdminKeyboardSwitchList(id){
  return request({
    url: `/admin/keyboard/getAdminKeyboardSwitchList.do/${id}`,
    method: "get"
  });
}

export function chooseAdminKeyboardSwitch(info){
  return request({
    url: `/admin/keyboard/chooseAdminKeyboardSwitch.do`,
    method: "post",
    data: info
  });
}

export function applyAdminAllKeyboardSwitch(id){
  return request({
    url: `/admin/keyboard/applyAdminAllKeyboardSwitch.do/${id}`,
    method: "post"
  });
}